projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca5819
)
Add docstring for propertize-description
author
justbur
<justin@burkett.cc>
Mon, 13 Jul 2015 01:58:26 +0000
(21:58 -0400)
committer
justbur
<justin@burkett.cc>
Mon, 13 Jul 2015 01:58:26 +0000
(21:58 -0400)
which-key.el
patch
|
blob
|
history
diff --git
a/which-key.el
b/which-key.el
index 330b31ed1c75ab507fb9ee9d2c603e9315e69a35..8d1f0391d36b09ae737232dc1b8cb1d0f03c3961 100644
(file)
--- a/
which-key.el
+++ b/
which-key.el
@@
-610,6
+610,10
@@
corresponding `which-key-special-key-face'."
key-w-face))))
(defun which-key/propertize-description (description)
+ "Add face to DESCRIPTION where the face chosen depends on
+whether the description represents a group or a command. Also
+make some minor adjustments to the description string, like
+removing a \"group:\" prefix."
(let* ((desc description)
(group-prfx (string-match-p "^group:" desc))
(group (or group-prfx